package sk.fhi.shared.rpc.action;

import sk.fhi.shared.model.AbstractEntity;
import sk.fhi.shared.rpc.AbstractAction;
import sk.fhi.shared.rpc.result.GetResult;

public class GetAction extends AbstractAction<GetResult> {

	private Long id;
	private AbstractEntity entity;

	public GetAction() {
	}
	
	public GetAction(AbstractEntity entity, Long id) {
		super();
		this.id = id;
		this.entity = entity;
	}

	public Long getId() {
		return id;
	}

	public AbstractEntity getEntity() {
		return entity;
	}

	@Override
	public String getLogMessage() {
		return "READ ENTITY [" + entity.getClass().getName() + "] id:'"
				+ id + "'";
	}

}
